<?php
/**
 *
 * @author Tongle Xu <xutongle@gmail.com> 2013-9-14
 * @copyright Copyright (c) 2003-2103 tintsoft.com
 * @license http://www.tintsoft.com
 * @version $Id$
 */
class Base_HttpException extends Base_Exception {
	/**
	 *
	 * @var integer HTTP status code, such as 403, 404, 500, etc.
	 */
	public $statusCode;
	
	/**
	 * Constructor.
	 *
	 * @param integer $status HTTP status code, such as 404, 500, etc.
	 * @param string $message error message
	 * @param integer $code error code
	 */
	public function __construct($status, $message = null, $code = 0) {
		$this->statusCode = $status;
		parent::__construct ( $message, $code );
	}
}